<?php
/**
 * View Archivio Post LaFabbrica.org
 * 
 * @author     luigi.pastore (gigi@la-fabbrica.org)
 * @created    21-apr-2011
 * @package    LaFabbrica
 * @copyright  Copyright (c) 2011 Luigi Pastore
 */
?>
<script type="text/javascript">
    //<![CDATA[

    $(document).ready(function()
    {
	var pagination = $('#locations').pagination({
	    'targetUrl' : '/admin/ajax/list/locations',
	    'orderField' : 'location_name',
	    'orderDir' : 'asc'
	},function(){
	    $("a.contacts").fancybox({
		    'type' : 'ajax',
		    'showCloseButton' : false
		});    
	    }
	);
	
    });

    //]]>
</script>
<div class="info">
    <h2>Archivio location</h2>
    <div>Per inserire un nuovo locale...</div>
</div>

<form>
    <ul>
	<li class="addnew">
	    <a class="button" href="nuovo">
		<img src="/images/admin/add-new.png" />Nuova Location
	    </a>
	</li>
	
	<li id="fo2li107" class="likert col4">
	    <div>
		<table>
		    <caption id="title107">
			Tot: <strong><?php echo count( $this->locations ) ?></strong> location.
		    </caption>
		    <thead>
			<tr>
			    <td colspan="5" class="pagination">
				<div class="paginator">
				    <span class="prev">
					<a href="javascript: void(0);">&nbsp;</a>
				    </span>
				    
				    <span class="loader">Sto caricando...</span>
				    <span class="next">
					<a href="javascript: void(0);">&nbsp;</a>
				    </span>
				</div>
			    </td>
			</tr>
			<tr>
			    <th class="sortable default {ref: 'location_name'}">Nome</th>
			    <td class="sortable default {ref: 'location_city'}">Citt&agrave;</td>
			    <td class="sortable default {ref: 'province_long_name'}">Provincia</td>
			    <td>Contatti</td>
			    <td>&nbsp;</td>
			</tr>
		    </thead>
		    <tbody id="locations">
			<!-- Questo contenuto viene rimpiazzato dalla paginazione-->
		    </tbody>
		    <tfoot>
			<tr>
			    <td colspan="5" class="pagination">
				<div class="paginator">
				    <span class="prev">
					<a href="javascript: void(0);">&nbsp;</a>
				    </span>
				    <div class="pagercontainer">
				    
				    </div>
				    <span class="next">
					<a href="javascript: void(0);">&nbsp;</a>
				    </span>
				</div>
			    </td>
			</tr>
		    </tfoot>
		</table>
	    </div>
	</li>	
	
    </ul>
</form>
